package com.example.intenttrial.receiver;

import java.io.File;
import java.net.URI;

import com.example.intenttrial.R;
import com.example.intenttrial.R.id;
import com.example.intenttrial.R.layout;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class BroadcastSendActivity extends Activity {
	public static final String SEND_ACTION = "broadcast_sent_action";
	private Button btnSend;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.screen_broadcast_send);
		mapUI();
		setListeners();
	}

	@Override
	protected void onResume() {
		super.onResume();
	}

	private void mapUI() {
		btnSend = (Button) findViewById(R.id.btn_send);
	}
	
	private void setListeners() {
		btnSend.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.putExtra("e", "lalala");
				intent.setAction(Intent.ACTION_DATE_CHANGED);
				sendBroadcast(intent);
			}
		});
	}
}
